package com.shiguiwu.springmybatis.designpattern.adapter;

/**
 * @description: 适配器模式
 * 定义：将一个类的接口转成客户期望的另外一个接口。适配器模式使得原本由于接口不匹配而不能一起工作的那些类可以一起工作。
 * @author: stone
 * @date: Created by 2021/2/23 15:39
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springmybatis.designpattern.adapter
 */
public class AdapterTests {

    public static void main(String[] args) {
        AudioPlayer audioPlayer = new AudioPlayer();
        audioPlayer.play("mp4", "123");
        audioPlayer.play("mp3", "222");
        audioPlayer.play("vlc", "13323");
        audioPlayer.play("mp41", "555");

    }
}
